import Service from './$axios'
import { appName } from '../config';

// 分页查询
export const queryByPage = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheck/queryByPage`,
        method: 'post',
        data
    })
}


// 新增
export const add = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheck/add`,
        method: 'post',
        data
    })
}


// 修改
export const edit = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheck/edit`,
        method: 'post',
        data
    })
}

// 删除
export const removeById = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheck/removeById?ids=${data}`,
        method: 'delete',
        data
    })
}

// 机型
export const queryByCondition = (data) => {
    return Service({
        url: `${appName}/product/queryByCondition`,
        method: 'post',
        data
    })
}


export const confirm = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheck/confirm?ids=${data}`,
        method: 'get',
        data
    })
}


// 关闭整改
export const rectification = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheck/rectification?ids=${data}`,
        method: 'get',
        data
    })
}



// 新增
export const adduploadImage = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheckAgreement/add`,
        method: 'post',
        data: data
    })
}


// 分页查询

export const Agreement = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheckAgreement/queryByPage`,
        method: 'post',
        data: data
    })
}

// 修改
export const editAgreement = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheckAgreement/edit`,
        method: 'post',
        data: data
    })
}


// 删除
export const removeByIdAgreement = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheckAgreement/removeById?id=${data}`,
        method: 'delete',
        data: data
    })
}

export const empower = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheck/empower`,
        method: 'post',
        data: data
    })
}
// 验收
export const acceptanceCheck = (data) => {
    return Service({
        url: `${appName}/productionPlanAcceptanceCheck/acceptanceCheck`,
        method: 'post',
        data: data
    })
}


